<!DOCTYPE html>
<html>
<head>
<title>商品管理</title>
<#include "/header.html">
</head>
<body>
<div id="pmpapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn" style="height: 80px">
			<div style="float: left;">
				<div class="form-group col-sm-2" style="width: 108px;margin-left: -13px;padding-top: 6px;font-size: 15px;">
					<span class="control-label">货品编码：</span>
				</div>
				<div class="form-group col-sm-2" style="width: 195px;margin-left: -35px">
					<input type="text" class="form-control" v-model="q.goodsNo" placeholder="请输入货品编码...">
				</div>
				<div class="form-group col-sm-2" style="width: 108px;margin-left: -13px;padding-top: 6px;font-size: 15px;">
					<span class="control-label">货品名称：</span>
				</div>
				<div class="form-group col-sm-2" style="width: 195px;margin-left: -35px">
					<input type="text" class="form-control" v-model="q.goodsName" placeholder="请输入货品名称...">
				</div>
				<div class="form-group col-sm-2" style="width: 108px;margin-left: -13px;padding-top: 6px;font-size: 15px;">
					<span class="control-label">品牌编码：</span>
				</div>
				<div class="form-group col-sm-2" style="width: 195px;margin-left: -35px">
					<input type="text" class="form-control" v-model="q.brandCode" placeholder="请输入品牌编码...">
				</div>
				<div class="form-group col-sm-2" style="width: 108px;margin-left: -13px;padding-top: 6px;font-size: 15px;">
					<span class="control-label">品牌名称：</span>
				</div>
				<div class="form-group col-sm-2" style="width: 195px;margin-left: -35px">
					<input type="text" class="form-control" v-model="q.brandName" placeholder="请输入品牌名称...">
				</div>
				<div class="form-group col-sm-2" style="width: 108px;margin-left: -13px;padding-top: 6px;font-size: 15px;">
					<span class="control-label">货品条码：</span>
				</div>
				<div class="form-group col-sm-2" style="width: 195px;margin-left: -35px">
					<input type="text" class="form-control" v-model="q.goodsCode" placeholder="请输入货品条码...">
				</div>
			</div>
			<div style="float: left">
				<div class="form-group col-sm-2" style="width: 108px;margin-left: -13px;padding-top: 6px;font-size: 15px;">
					<span class="control-label">分类编码：</span>
				</div>
				<div class="form-group col-sm-2" style="width: 195px;margin-left: -35px">
					<input type="text" class="form-control" v-model="q.classifyCode" placeholder="请输入分类编码...">
				</div>
				<div class="form-group col-sm-2" style="width: 108px;margin-left: -13px;padding-top: 6px;font-size: 15px;">
					<span class="control-label">分类名称：</span>
				</div>
				<div class="form-group col-sm-2" style="width: 195px;margin-left: -35px">
					<input type="text" class="form-control" v-model="q.classifyName" placeholder="请输入分类名称...">
				</div>

				<a class="btn btn-default" @click="query">查询</a>
				<a class="btn btn-warning btn-rounded btn-sm" @click="reset">重置</a>

				<#if shiro.hasPermission("sys:product:save")>
				<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
				</#if>

				<#if shiro.hasPermission("sys:product:update")>
				<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
				</#if>

				<#if shiro.hasPermission("sys:product:delete")>
				<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
				</#if>
			</div>


		</div>

	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">货品编码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.goodsNo" placeholder="货品编码"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">货品名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.goodsName" placeholder="货品名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">品牌编码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.brandCode" placeholder="品牌编码"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">品牌名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.brandName" placeholder="品牌名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">货品条码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.goodsCode" placeholder="货品条码"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">分类编码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.classifyCode" placeholder="分类编码"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">分类名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.classifyName" placeholder="分类名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">创建人</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.createUserName" placeholder="创建人"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">创建时间</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.createTime" placeholder="创建时间"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">更新人</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.updateUserName" placeholder="更新人"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">更新时间</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="product.updateTime" placeholder="更新时间"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/product.js?_${.now?long}"></script>
</body>
</html>